package cn.itcast.log4j;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class App {

    private Log log = LogFactory.getLog(App.class);

    @Test
    public void testLog(){
        try {
            log.debug("调试信息");
            log.info("执行信息");
            log.warn("警告信息");
        } catch (Exception e) {
            e.printStackTrace();
            log.error("错误信息");
        }

    }
}
